package cn.zd.demo0.util;

import android.app.Activity;
import android.content.Context;
import android.view.View;
import android.view.inputmethod.InputMethodManager;

public class KeyboardUtil {
    public static void hideInputMethod(Activity act, View v){
        InputMethodManager inm = (InputMethodManager) act.getSystemService(Context.INPUT_METHOD_SERVICE);
        inm.hideSoftInputFromWindow(v.getWindowToken(),0);
    }
}
